package com.qf.service;

import com.qf.entity.Emp;
import com.qf.entity.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;
import java.util.List;

/**
 * User: key
 * ClassName:EmpService
 * Date: 2023/5/25
 * Time: 16:35
 * description:
 */
public interface EmpService {
    public List<Emp> selectAll() throws SQLException;

    public Emp select(Emp emp) throws SQLException;
    public Emp select(Integer eno) throws SQLException;

    public Integer insert(Emp emp) throws SQLException;

    public Integer update(Emp emp) throws SQLException;

    public Integer delete(Integer eno) throws SQLException;
    public Emp select(String username,String password) throws SQLException;

    Integer deleteByIds(List<Emp> emp);
    List<Emp> selectByEnos(List<Integer> enos) throws SQLException;
}
